package com.spongeli.user.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class TimerTask {
	private static int i = 0 ;
	@Scheduled(cron = "0/5 * * * * ?")
	public void ttt(){
		System.out.println("执行到第"+(i++)+"次");
	}
}
